<?php

namespace app\common\model;

use app\common\controller\Helper;
use think\Model;

class LangClassLesson extends Model
{
    use Helper;

    protected $table = 'lang_class_lesson';

    // 语音课
    const COURSE_VOICE = 1;
    // 基础课
    const COURSE_BASE = 2;
    // 高级课
    const COURSE_SENIOR = 3;

    public static function attributes($attribute, $key = null)
    {
        $list = [
            'type' => [
                self::COURSE_VOICE => '语音课',
                self::COURSE_BASE => '基础课',
                self::COURSE_SENIOR => '高级课',
            ],
        ];
        return self::attributeReturn($list, $attribute, $key);
    }
}